import request from '@/utils/request'

// 查询类目明细列表
export function listType_detail(query) {
  return request({
    url: '/exam/type_detail/list',
    method: 'get',
    params: query
  })
}

// 查询类目明细详细
export function getType_detail(detailId) {
  return request({
    url: '/exam/type_detail/' + detailId,
    method: 'get'
  })
}

// 新增类目明细
export function addType_detail(data) {
  return request({
    url: '/exam/type_detail',
    method: 'post',
    data: data
  })
}

// 修改类目明细
export function updateType_detail(data) {
  return request({
    url: '/exam/type_detail',
    method: 'put',
    data: data
  })
}

// 删除类目明细
export function delType_detail(detailId) {
  return request({
    url: '/exam/type_detail/' + detailId,
    method: 'delete'
  })
}
